package mk.basic;

import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class J01_FoodNara {

	public static void main(String[] args) throws ParseException {
		
		String title;      //영수증제목
		int soju;          //소주단가
 		int chik;          //치킨단가
		String liner;           //구분선
		int tax;
		int tottax;
		int total;
		int money;
		int change;
		
		title ="[음식나라]";
		soju=3000;
		chik=12000;
		liner="----------------------";
		tax= (2*3000+1*12000)/10;
		tottax= (2*3000+1*12000)- tax;
		total= (2*3000+1*12000);		
		money=50000;
		change=50000- total;
		
		String from = "2013-04-08 10:10:10";

		SimpleDateFormat transFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		java.util.Date to = transFormat.parse(from);

		
		
		System.out.println(title);
		System.out.println(liner);
		System.out.println("소주\t2\t" + (2*soju));
		System.out.println("너나치킨\t1\t" + (1*chik));
		System.out.println(liner);
		System.out.println("과세합계\t\t"+ tottax );
		System.out.println("부가세\t\t"+ tax);
		System.out.println(liner);
		System.out.println("총합계\t\t"+ total);
		System.out.println("받은금액\t\t"+ money);
		System.out.println("잔돈\t\t"+change);
		System.out.println("---------------------");
		System.out.println();

		
	}

}
